package com.vibration.baseinfo.domain;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vibration.common.annotation.Excel;
import com.vibration.common.core.domain.BaseEntity;
import org.apache.ibatis.javassist.Loader;

/**
 * 探针任务对象 cz_temperature_data
 * 
 * @author Mr_Wu
 * @date 2022-11-07
 */
public class CzTemperatureData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 设备编号 */
    private String equipmentCode;

    @Excel(name = "设备名称")
    private String equipmentName;

    /** 任务ID */
    private Long taskId;

    /** 增温时间 */
    private Double warmingTime;

    /** 温度 */
    @Excel(name = "温度")
    private Double temperature;

    /** 数据时间 */
    private Long dataTime;

    private String dataTimeStr;

    @Excel(name = "数据时间")
    private String dataTimeStr1;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipmentCode(String equipmentCode) 
    {
        this.equipmentCode = equipmentCode;
    }

    public String getEquipmentCode() 
    {
        return equipmentCode;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setWarmingTime(Double warmingTime)
    {
        this.warmingTime = warmingTime;
    }

    public Double getWarmingTime()
    {
        return warmingTime;
    }
    public void setTemperature(Double temperature)
    {
        this.temperature = temperature;
    }

    public Double getTemperature()
    {
        return temperature;
    }

    public Long getDataTime() {
        return dataTime;
    }

    public void setDataTime(Long dataTime) {
        this.dataTime = dataTime;
    }

    public String getDataTimeStr() {
        SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
        if(this.dataTime!=null){
            dataTimeStr = format.format(new Date(this.dataTime));
        }
        return dataTimeStr;
    }

    public void setDataTimeStr1(String dataTimeStr1) {
        this.dataTimeStr1 = dataTimeStr1;
    }

    public String getDataTimeStr1() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        if(this.dataTime!=null){
            dataTimeStr = format.format(new Date(this.dataTime));
        }
        return dataTimeStr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentCode", getEquipmentCode())
            .append("taskId", getTaskId())
            .append("warmingTime", getWarmingTime())
            .append("temperature", getTemperature())
            .append("dataTime", getDataTime())
            .toString();
    }
}
